#include <stdio.h>
#include <stdlib.h>
#include "heap.h"

void rand_sort(int i)
{
	heap_t heap;
	int value;

	heap_init(&heap);
	while (i--) {
		value = rand() % 50;
		heap_insert(&heap, value);	
	}
	//heap_print(&heap);
	heap_exact_all(&heap);
}

int main()
{
	int i;

	for (i = 4; i < 8; i++)
		rand_sort(i);

	return 0;
}

